package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName exam_user
 */
@TableName(value ="exam_user")
public class ExamUser implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    private String username;

    /**
     * 
     */
    private String passwords;

    /**
     * 
     */
    private String usersex;

    /**
     * 
     */
    private String idcard;

    /**
     * 
     */
    private String companyname;

    /**
     * 
     */
    private String groupid;

    /**
     * 
     */
    private String phonenumber;

    /**
     * 1未删除  2删除
     */
    private Integer isdelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getUsername() {
        return username;
    }

    /**
     * 
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 
     */
    public String getPasswords() {
        return passwords;
    }

    /**
     * 
     */
    public void setPasswords(String passwords) {
        this.passwords = passwords;
    }

    /**
     * 
     */
    public String getUsersex() {
        return usersex;
    }

    /**
     * 
     */
    public void setUsersex(String usersex) {
        this.usersex = usersex;
    }

    /**
     * 
     */
    public String getIdcard() {
        return idcard;
    }

    /**
     * 
     */
    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    /**
     * 
     */
    public String getCompanyname() {
        return companyname;
    }

    /**
     * 
     */
    public void setCompanyname(String companyname) {
        this.companyname = companyname;
    }

    /**
     * 
     */
    public String getGroupid() {
        return groupid;
    }

    /**
     * 
     */
    public void setGroupid(String groupid) {
        this.groupid = groupid;
    }

    /**
     * 
     */
    public String getPhonenumber() {
        return phonenumber;
    }

    /**
     * 
     */
    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    /**
     * 1未删除  2删除
     */
    public Integer getIsdelete() {
        return isdelete;
    }

    /**
     * 1未删除  2删除
     */
    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ExamUser other = (ExamUser) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getPasswords() == null ? other.getPasswords() == null : this.getPasswords().equals(other.getPasswords()))
            && (this.getUsersex() == null ? other.getUsersex() == null : this.getUsersex().equals(other.getUsersex()))
            && (this.getIdcard() == null ? other.getIdcard() == null : this.getIdcard().equals(other.getIdcard()))
            && (this.getCompanyname() == null ? other.getCompanyname() == null : this.getCompanyname().equals(other.getCompanyname()))
            && (this.getGroupid() == null ? other.getGroupid() == null : this.getGroupid().equals(other.getGroupid()))
            && (this.getPhonenumber() == null ? other.getPhonenumber() == null : this.getPhonenumber().equals(other.getPhonenumber()))
            && (this.getIsdelete() == null ? other.getIsdelete() == null : this.getIsdelete().equals(other.getIsdelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getPasswords() == null) ? 0 : getPasswords().hashCode());
        result = prime * result + ((getUsersex() == null) ? 0 : getUsersex().hashCode());
        result = prime * result + ((getIdcard() == null) ? 0 : getIdcard().hashCode());
        result = prime * result + ((getCompanyname() == null) ? 0 : getCompanyname().hashCode());
        result = prime * result + ((getGroupid() == null) ? 0 : getGroupid().hashCode());
        result = prime * result + ((getPhonenumber() == null) ? 0 : getPhonenumber().hashCode());
        result = prime * result + ((getIsdelete() == null) ? 0 : getIsdelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", username=").append(username);
        sb.append(", passwords=").append(passwords);
        sb.append(", usersex=").append(usersex);
        sb.append(", idcard=").append(idcard);
        sb.append(", companyname=").append(companyname);
        sb.append(", groupid=").append(groupid);
        sb.append(", phonenumber=").append(phonenumber);
        sb.append(", isdelete=").append(isdelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}